#include <QApplication>
#include "StartSettingsDialog.h"

#include "Translator.h"

#include <QTranslator>
#include <QLocale>
#include <QLibraryInfo>


int main(int argc, char* argv[])
{
    QApplication app(argc, argv);

    QString locale = QLocale::system().name().section('_', 0, 0);

    QTranslator translator;
    translator.load(QString("qt_") + locale, QLibraryInfo::location(QLibraryInfo::TranslationsPath));
    app.installTranslator(&translator);

    QTranslator tr;
    tr.load(QString("risk_") + locale, app.applicationDirPath()+QDir::toNativeSeparators(QString("/Translates")));
    app.installTranslator(&tr);

    getTranslator(locale);

    StartSettingsDialog fenetre;
    fenetre.show();

    return app.exec();
}
